package com.thirdgroup.dao.impl;

import com.thirdgroup.dao.IndustryDao;
import com.thirdgroup.pojo.entity.BusinessCustomerIndustry;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

import static org.junit.Assert.*;

public class IndustryDaoImplTest {

    private IndustryDao industryDao=new IndustryDaoImpl();
    @Test
    public void selectByName() {
        Integer s = industryDao.selectByName("金融行业");
        System.out.println(s);
    }

    @Test
    public void selectName() {
        List<String> name=new ArrayList<>();
        for (BusinessCustomerIndustry businessCustomerIndustry : industryDao.selectName()) {
            name.add(businessCustomerIndustry.getIndustryname());
            System.out.println(businessCustomerIndustry.getIndustryname());
        }

    }

    @Test
    public void selectById() {
        String s = industryDao.selectById(1);
        System.out.println(s);
    }
}